/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package elementosJuego;

/**
 *
 * @author Administrador
 */
import java.awt.Color;
import java.awt.Graphics;

public class Pared extends Figura{

    private Color color;

    public Pared(Integer x0, Integer y0, Integer w0, Integer h0, Color color){
        super(x0, y0, w0, h0);
        this.color = color;
    }

    @Override
     public void dibujate(Graphics g) {
        g.setColor(color);
        g.fillRect(x, y, w, h);
     }  
}